<html>
<style type="text/css">
  
	form{
		width:600px;height:400px;margin:0 auto;
	}

</style>
<body>

    <?php 

        if(isset($_REQUEST['email'])){
       	    $email = $_REQUEST['email'];
       	    $subject = $_REQUEST['subject'];
       	    $message = $_REQUEST['message'];
       	    mail('123@qq.com',$subject,$message);
       	    echo '发送成功';
        }else{
        	echo "<form action='active.html' method='post'>

                接收人:<input type='text' name='email' /><br/>

                主  题:<input type='text' name='subject' /> <br/>

			    内  容: <br/>

			        <textarea name='message' rows='15' cols='40'>


				    </textarea><br />

			    <input type='submit' value='发送邮件' />

        	</form>";
        }


    ?>
    

</body>
</html>